/**
 * 
 */
package com.example.android_is2.pathDraw;

import com.example.android_is2.InfoGeoPoints;

/**
 * @author KAIN-PC
 * 
 */
// TRASFORMA LE COORDINATE LATITUDINE LONGITUDINE IN NOME VIA
public class TrackCodingAddr {

  public static InfoGeoPoints TranslateGeoPoint2String(InfoGeoPoints listTrack) {
    
    GoogleParser parser;
    String jsonURL = "http://maps.googleapis.com/maps/api/geocode/json?latlng=";
      final StringBuffer sBuf = new StringBuffer(jsonURL);
      String pointTxt = Double.toString(listTrack.getLat());
      sBuf.append(pointTxt);
      sBuf.append(",");
      pointTxt = Double.toString(listTrack.getLong());
      sBuf.append(pointTxt);
      sBuf.append("&sensor=true");
      parser = new GoogleParser(sBuf.toString());
      InfoGeoPoints latlong_con_testo = parser.parseTrackCoding(listTrack);
    return latlong_con_testo;

  }
}

